package com.example.produces.mapper;

import com.example.produces.entity.Client;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository//数据访问层 (DAO 层 ) 的类标识为bean
public interface ClientMapper {
    List<Client>findAll();
    void Add(Client client);
    Client findOne(String name);
    void upDate(Client client);
}
